import extraConfigEventPlus from '@/common/extra-config-event.js';
import { EMIT_PARAMS_OBJ } from '@/utils/constant';
import { $demoi18n } from '@/utils/lang';
import { getCommonVal } from '@/utils/util-common.js';

export default {
  isCustomProertyPannel: true,
  propertyPannelName: `config_${process.env.xvueNameSpace_}win_container`,
  config: {
    property: {
      title: 'Pop-up Component',
      isTitleFixed: true,
      selectAcceptEvt: '',
      evtAttribute: '',
      variableTitle: 'Variable Title',
      isTitleSignVisiable: false,
      signMarginLeft: 10,
      verticalLineBackgroundColor: '#00ffff',
      componentStyle: window._adoPremise.uc.theme,
      winLocation: 'winCenter',
      isDesignViewWinLocation: false,
      isHideTopABar: false,
      dialogBackgroundColor: getCommonVal('popBox.bgColor'),
      mask: 1,
      dlgAnimation: 0,
      eventControlStatus: false,
      openStatusParams: '',
      closeStatusParams: '',
    },
  },
  events: [
    {
      id: '086c6580-1756-11eb-b56b-41225a430581',
      key: 'win-dialog',
      label: '',
      type: 'out',
      description: '',
      hide: true,
      parameters: [
        {
          id: 'dd78804b-bec6-4a36-a60f-469090969e2e',
          key: 'key',
          label: 'panelEvent.label.eventKey',
          value: '',
        },
        {
          id: 'dd678002-bec2-4a32-a602-469090969e22',
          key: EMIT_PARAMS_OBJ,
          label: '发出参数对象',
          hide: true,
          value: '',
        },
      ],
    },
    ...extraConfigEventPlus,
  ],
};
